#include "mainwindow.h"
#include <QApplication>

#define NO_GUI

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MainWindow w;

#ifndef NO_GUI
    w.show();
    w.setWindowTitle("听小方游戏数据生成器");
    w.setWindowIcon(QIcon(":/img/cube.jpg"));
//    QPixmap pixmap = QPixmap(":/img/icon.jpg").scaled(w.size());
    QPalette palette(w.palette());
    palette.setBrush(QPalette::Background, QBrush(QColor(85, 255, 0)));
    w.setPalette(palette);
    QApplication::setApplicationVersion("0.1.0");
#else
    w.make();
    exit(0);
#endif

    return a.exec();
}
